package com.borya;

import org.junit.Before;
import org.junit.Test;

import com.alibaba.fastjson.JSONObject;
import com.borya.framework.core.ServerBeanFactory;
import com.borya.framework.core.ServerInitializer;
import com.borya.service.web.impl.WebUserServiceImpl;

public class test_web {
	WebUserServiceImpl webservice;
	
	@Before
	public void before() throws Exception {
		ServerInitializer init = new ServerInitializer();
		init.init();
		webservice = (WebUserServiceImpl) ServerBeanFactory.getInstance().getBeanByName("webUserServiceImpl");
	}
	/**测试时把鉴权关闭**/
//	@Test
//	public void test_checkdearlerId(){
//		JSONObject jso = new JSONObject();
//		jso.put("userName", "111");
//		jso.put("dealerID","dsds");
//		String r = webservice.checkDealerId(jso);
//		System.out.println(r);
//		
//	}
	@Test
	public void test_submitInfo(){
		JSONObject jso = new JSONObject();
		jso.put("userName", "111");
		jso.put("phone","18244243211");
		jso.put("tbUserName","dsds");
		jso.put("userType","9");
		jso.put("dealerID","dsds");
		jso.put("cityCode","dsds");
		jso.put("cityName","dsds");
		jso.put("papersCode","codre");
		jso.put("wxID","wx");
		jso.put("aliID","ali");
		jso.put("remarks","dsds");

		String r = webservice.submitInfo(jso);
		System.out.println(r);
		
	}
//	@Test
//	public void test_submitMerchantInfo(){
//		JSONObject jso = new JSONObject();
//		jso.put("userName", "111");
//		jso.put("userType","11");
//		jso.put("dealerID","dsdsddd");
//		jso.put("companyName","com");
//		jso.put("businessLicence","bu");
//		jso.put("address","add");
//		jso.put("popChannel","pop");
//		jso.put("headPopChannel","hea");
//		jso.put("devMac","dev");
//		String r = webservice.submitMerchantInfo(jso);
//		System.out.println(r);
//		
//	}
//	
	
}
